package com.anti.modular.bus.busrealestate.result.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description TODO
 * @Author anTi
 * @Date 2021-6-8
 */
@Data
public class StateExcel {
    private Long id;

    private Long roomId;
    //'房产名'
    @Excel(name = "房產名稱",needMerge = true, width = 30)
    private String name;
    //房产类型 （字典 house_type）
    @Excel(name = "類型",needMerge = true, width = 30)
    private String houseTypeName;
    //'房产地址'
    @Excel(name = "地址",needMerge = true, width = 30)
    private String address;
    //'负责人'
    @Excel(name = "負責人",needMerge = true, width = 30)
    private String principal;
    //'联系电话'
    @Excel(name = "聯繫電話",needMerge = true, width = 30)
    private String phone;

    @Excel(name = "房間號",needMerge = true, width = 30)
    private String code;

    @Excel(name = "戶型",needMerge = true, width = 30)
    private String roomTypeName;

    @Excel(name = "面積",needMerge = true, width = 30)
    private String area;

    @Excel(name = "收租週期",needMerge = true, width = 30)
    private String receiptcycle;

    @Excel(name = "租金",needMerge = true, width = 30)
    private String rent;

    @Excel(name = "押金",needMerge = true, width = 30)
    private String deposit;

    @Excel(name = "狀態",needMerge = true, width = 30,replace = {"閒置_0","已租_1"})
    private String lease;

    @ExcelCollection(name = "其他押金")
    private List<DepositExcel> depositExcels=new ArrayList<>();

    @ExcelCollection(name = "水電物業")
    private List<ExpensesExcel> expensesExcels=new ArrayList<>();

    @ExcelCollection(name = "家私配置")
    private List<FurnitureExcel> furnitureExcels=new ArrayList<>();
}
